#!/usr/bin/env python
# -*- coding:utf-8 -*-
from flask import Blueprint
from flask_login import login_required
from blog.models import Article

art = Blueprint('article', __name__, url_prefix='/article')


@art.route('/index')
@login_required
def index():

    res = Article.query.first()
    print(res.title)
    return 'article/index'
